<%@page import="com.shi.entity.User"%>
<%@page import="com.shi.entity.SellRecord"%>
<%@page import="com.shi.Dao.SellDao"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
    <title>My JSP 'index.jsp' starting page</title>
    <link href="style/bootstrap.css" rel="stylesheet" > 
    <style type="text/css">'
    	#caozuo{
    		height:150px;
    	}
    	#caozuo .choose{
    		position: relative;
    	}
    	#caozuo .choose .xuanxiang{
    		position: absolute;
    		right:100px;
    	}
    	#caozuo .choose .xuanxiang a{
    		margin:20px;
    	}
    	.biaoge{
    		margin-top: 110px;
    		width: 70%;
    		margin-left: auto;
    		margin-right: auto;
    	}
    	.biaoge a{
    		width: 30px;
    	}
    	.dibu{
    		margin-left: 15%;
    		margin-top: 100px;
    	}
    </style>
  </head>
  <body>
  	<%@ include file="top.jsp" %>
	<div id="caozuo">
		<div class="choose" >
			<div class="xuanxiang" >
				<a class="btn btn-info"  href="caozuo.html?task=showall">所有记录</a>
				<a class="btn btn-success" href="caozuo.html?task=add">添加新纪录</a>
				<a class="btn btn-primary" href="caozuo.html?task=find">搜索记录</a>
			</div>
		</div>
	</div>
	<div class="biaoge" >
		<table class="table table-striped">
			<thead>
				<tr>
					<th>时间</th>
					<th>旅行社</th>
					<th>导游</th>
					<th>客源地</th>
					<th>人数</th>
					<th>销售额</th>
					<th>客单价</th>
					<th></th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${listbywhere}" var="sell">
					<tr>
						<td>${sell.time}</td>
						<td>${sell.travel}</td>
						<td>${sell.guide}</td>
						<td>${sell.address}</td>
						<td>${sell.peopleNum}</td>
						<td>${sell.allsell}</td>
						<td>${sell.averageMoney}</td>
						<td>
						<a href="caozuo.html?task=update&id=${sell.id}" >修改</a>
						<a href="caozuo.html?task=del&id=${sell.id}">删除</a>
						</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
	<div class="dibu" >
		@<span>${sessionScope.user.userName }</span>
	</div>
  </body>
</html>
